package com.example.conf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author wpdcn
 * @since 2020-11-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("shop_good_evaluate")
@ApiModel(value="ShopGoodEvaluateEntity对象", description="")
public class ShopGoodEvaluateEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Column(comment = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Column(comment = "商品id")
    @ApiModelProperty(value = "商品id")
    private Long goodId;

    @Column(comment = "评价id")
    @ApiModelProperty(value = "评价id")
    private Long evaluateId;

    @Column(comment = "状态：1-可见；0-不可见")
    @ApiModelProperty("状态：1-可见；0-不可见")
    private String status;


    /**
     * 评分
     */
    @Column(comment = "评分")
    @TableField(exist = false)
    @ApiModelProperty(value = "评分")
    private Double score;

    /**
     * 评价
     */
    @Column(comment = "评价")
    @TableField(exist = false)
    @ApiModelProperty(value = "评价")
    private String description;

    /**
     * 评价时间
     */
    @Column(comment = "评价时间")
    @TableField(exist = false)
    @ApiModelProperty(value = "评价时间")
    private LocalDateTime createTime;

    /**
     * 用户昵称
     */
    @Column(comment = "用户昵称")
    @TableField(exist = false)
    @ApiModelProperty(value = "用户昵称")
    private String nickName;

    /**
     * 真实姓名
     */
    @Column(comment = "真实姓名")
    @TableField(exist = false)
    @ApiModelProperty(value = "真实姓名")
    private String realName;


    /**
     * 手机号码
     */
    @Column(comment = "手机号码")
    @TableField(exist = false)
    @ApiModelProperty(value = "手机号码")
    private String userMobile;


}
